<template>
  <div class="enrollPayMoneyContainer">
    <div
      class="dialog animated"
      :class="open ? 'fadeIn' : 'fadeOut'"
      v-show="show"
      :style="{ visibility: visible ? 'visible' : 'hidden' }"
    >
      <div class="panel animated" :class="open ? 'zoomIn' : ''">
        <div class="title">
          毕业\离园
          <div class="close" @click="cancel()"></div>
        </div>
        <div>
          <el-form label-width="160px">
            <el-form-item label="毕业\离园">毕业</el-form-item>
            <el-form-item label="毕业班级">班级名称、班级名称</el-form-item>
            <el-form-item label="毕业\离园日期" :rules="[
      { required: true, message: ''}]">
              <el-date-picker style="width:80%" type="date" placeholder="请选择出生年月" v-model="value"></el-date-picker>
            </el-form-item>
            <el-form-item label="毕业\离园去向" :rules="[
      { required: true, message: ''}]">
              <el-input style="width:80%" clearable v-model="value" placeholder="请输入毕业\离园去向"></el-input>
            </el-form-item>
            <el-form-item label="备注">
              <el-input
                type="textarea"
                :rows="2"
                style="width:80%"
                placeholder="请输入内容"
                v-model="value"
              ></el-input>
            </el-form-item>
            <el-form-item label="费用结算" style=" margin-bottom: 0rem;">
              <el-radio v-model="value" :label="1">不退费</el-radio>
            </el-form-item>
            <el-form-item style=" margin-bottom: 0rem;">
              <el-radio v-model="value" :label="2">退费</el-radio>
            </el-form-item>
            <el-form-item style=" margin-bottom: 0rem;">
              <el-checkbox-group v-model="value" style="margin-left:0.2rem;">
                <el-checkbox :label="1">餐费</el-checkbox>
                <el-checkbox :label="2">学费</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-form>
        </div>
        <div class="btn_div">
          <div class="btn_cancel" @click="previousStep()">上一步</div>
          <div class="btn_sure" @click="sure()">确定</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
var vm, user;
export default {
  data: function() {
    return {
      show: false,
      open: false,
      visible: false,
      isAdd: true,
      value: ""
    };
  },
  methods: {
    init: function(data) {
      vm.show = true;
      setTimeout(function() {
        vm.open = true;
        vm.visible = true;
      }, 11);
    },
    sure() {
      vm.cancel();
    },
    previousStep() {
      vm.$emit("previousStep", "");
    },
    cancel: function() {
      //隐藏弹窗
      vm.open = false;
      vm.isAdd = true;
      vm.$emit("cancel", "");
      setTimeout(function() {
        vm.show = false;
        vm.visible = false;
      }, 500);
    }
  },
  created: function() {
    vm = this;
    user = tool.getItem(lsKey.user, true); //得到当前用户信息
  }
};
</script>
<style lang="scss">
</style>
<style scoped src="@/style/module/dialog.css"></style>
<style scoped>
.panel{
  width:6rem;
}
</style>





